package com.paireach.szwolaiyun.activity;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.paireach.szwolaiyun.R;
import com.paireach.szwolaiyun.fragmentall.SetForecastTimeFragment;
import com.paireach.szwolaiyun.sz_common_widget.activity.BaseActivity;

/**
 * 设置预计到达时间
 * @deprecated app中不再需要设置预计到达时间，该功能由工厂方处理
 */
@Deprecated
public class SetForecastTimeActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set_forecast_time);
        FragmentManager manager=getSupportFragmentManager();
        FragmentTransaction t=manager.beginTransaction();
        String orderCode=getIntent().getStringExtra("orderCode");
        SetForecastTimeFragment fragment=SetForecastTimeFragment.getInstance(orderCode);
        t.replace(R.id.frame,fragment,SetForecastTimeFragment.TAG).commit();
        findViewById(R.id.layout_top_back).setOnClickListener(new View.OnClickListener(){

            @Override
            public void onClick(View view) {
               finish();
            }
        });
        ((TextView) findViewById(R.id.layout_top_change)).setText("设置预约卸货时间");
    }
}
